#!/bin/bash
/etc/init.d/rsyslog start
mkdir -p /home/vmail/log
mkdir -p /home/vmail/temp
service postfix start
service dovecot start
touch /home/vmail/log/dovecot-debug.log /home/vmail/log/dovecot-deliver.log /home/vmail/log/dovecot-info.log
# 配置权限
chown -R postfix:postfix /etc/postfix
chown root:root /etc/postfix/dynamicmaps.cf
chown -R vmail:vmail /home/vmail

while [ 1 = 1 ]
do
  sleep 1;
done
